<?php
/**
 * Created by PhpStorm.
 * User: lantranduc
 * Date: 5/22/14
 * Time: 1:44 PM
 */
App::uses('AppModel','Model');
class User extends AppModel{
    public $primaryKey = 'userID';

    public  $hasMany = array(
        'links' => array(
            'className' => 'Links',
            'foreignKey' => 'userID'
        ));

    public $validate = array(
        'email'=>array(
            'rule'=>array('isUnique','email'),
            'required'=>true,
            'allowEmpty'=>false,
        ),


    );

}